
<!--
 * @Author: cgl
 * @Date: 2023-04-18 15:12:26
 * @LastEditors: liangkun 2669681641@qq.com
 * @LastEditTime: 2023-11-22 19:15:23
 * @FilePath: \radiation-hygiene-fe\src\views\slide\components\basicTable\basicTable22.vue
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
-->
<template>
	<div>
		<table style="width: 100%"  border="1" cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td>
					<div class="text-justify" style="padding-inline: 5px;">放射诊疗</div>
					<div class="text-justify" style="padding-inline: 5px;">许可信息</div>
				</td>
				<td colspan="3">
					<el-radio-group v-model="basicForm.basicInfo.licenseMode">
						<el-radio :label="0">新增</el-radio>
						<el-radio :label="1" >已注册（放射诊疗许可证对应编号：<el-input data-cusValidate="text" v-model="basicForm.basicInfo.licenceNumber" style="width: 100px"/>）</el-radio>
					</el-radio-group>
				</td>
			</tr>

			<tr>
				<td width="10%" class="text-justify">设备使用信息</td>
				<td width="40%">
					<el-input v-model="basicForm.basicInfo.tubeVoltage" style="width: 60px"/> kV，
					<el-input v-model="basicForm.basicInfo.tubeCurrent" style="width: 60px"/> mAs；
				</td>
				<td width="10%" class="text-justify">出厂日期</td>
				<td>
					<el-date-picker
						class="inputborder"
						v-model="basicForm.basicInfo.manufactureDate"
						value-format="yyyy-MM-dd"
						style="width: 89%"
						type="date"
						size="mini"
						:placeholder="lrstatus == '3' ? '' : '请选择'">
					</el-date-picker>
				</td>
			</tr>

			<tr>
				<td class="text-justify">设备参数</td>
				<td colspan="3">
					最大管电压：<el-input v-model="basicForm.basicInfo.maximumTubeVoltage" style="width: 60px"/> kV；
					最大管电流：<el-input v-model="basicForm.basicInfo.maximumTubeCurrent" style="width: 60px"/> mA；
				</td>
			</tr>
			<tr>
				<td class="text-justify">设备类型</td>
				<td colspan="3">
					<el-radio-group v-model="basicForm.basicInfo.equipmentType">
						<el-radio label="0">摄影</el-radio>
						<el-radio label="5">骨密度</el-radio>
						<el-radio label="7">其他
							<el-input v-model="basicForm.basicInfo.other" style="width: 60px"/>
						</el-radio>
					</el-radio-group>
				</td>
			</tr>
		</table>
	</div>
</template>

<script>

export default {
  name: "User",
  dicts: ['target_type', 'filtration_type'],
  data() {
    return {
			form: {},
			otherTypeLists: [
      {
          id: 1,
          label: '普通模式',
          value: 1
        },
        {
          id: 2,
          label: 'DBT',
          value: 2
        },
      ],
    };
  },
  props: {
		// 基本信息数据
    basicForm: {
			type: Object,
      default: () => {
				return {}
			},
    },
		// 状态
    lrstatus: {
			type: String,
      default: "",
    },
  },
	inject: {
    app: { value: "app", default: null }
	},
  watch: {
    'app.dialogVisibleEquipment': {
      handler(val) {
				if(val) {
					let arr = this.basicForm.basicInfo.otherType?.split("/") || [];
					if(arr[0]) {
						this.$set(this.basicForm.basicInfo, "cus_otherTarget", arr[0]);
					}
					if(arr[1]) {
						this.$set(this.basicForm.basicInfo, "cus_otherfiltration", arr[1]);
					}
				}
      },
      deep: true,
      immediate: true
    },
  },
};
</script>

<style lang="scss" scoped>
@import '../content.scss';
</style>